package com.itheima.operator;

public class OperatorDemo3 {
    public static void main(String[] args) {
        // 需求：理解+与字符串一起做连接符: 能算则算，不能算大家就在一起
        int a = 5;
        System.out.println("abc" + 'a');  // abca
        System.out.println("abc" + a);   // abc5
        System.out.println(5 + a);   // 10
        System.out.println("abc" + 5 + 'a'); // abc5a
        System.out.println(15 + "abc" + 15); // 15abc15
        System.out.println(a + 'a');  //  102
        System.out.println(a + "" + 'a'); // 5a
        System.out.println(a + 'a' + " itheima "); // 102 itheima
        System.out.println("itheima" + a + 'a');  //
        System.out.println("itheima"+ ( a + 'a' )); // itheima102
    }
}
